<%//@page import="javax.ws.rs.POST"%>
<%
if(request.getParameter("page")!=null)
       {
    String is_page=request.getParameter("page");
    
     if(request.getParameter("editstudent123")!=null)
    {
        pageContext.include("../student/edit_student_post.jsp");
        return;
    }
    
    if(request.getParameter("addstudent")!=null)
    {
        pageContext.include("../student/add_student_post.jsp");
        return;
    }       
    if(request.getParameter("addteacher")!=null)
    {
        pageContext.include("../teacher/add_teacher_post.jsp");
        return;
    }
    
    if(request.getParameter("editteacher")!=null)
    {
        pageContext.include("../teacher/edit_teacher_post.jsp");
        return;
    }
    
    if(request.getParameter("deleteteacherlist")!=null)
    {
        pageContext.include("../teacher/delete_teacher_list.jsp");
        return;
    }
    
    if(request.getParameter("addsubject")!=null)
    {
        pageContext.include("../subject/add_subject_post.jsp");
        return;
    }
    
    if(request.getParameter("editsubject")!=null)
    {
        pageContext.include("../subject/edit_subject_post.jsp");
        return;
    }
    
    if(request.getParameter("editrequiredsubjects")!=null)
    {
        pageContext.include("../subject/edit_required_subject_post.jsp");
        return;
    }
    
    if(request.getParameter("deletesubject")!=null)
    {
        pageContext.include("../subject/delete_subject_list.jsp");
        return;
    }
    
    if(request.getParameter("addyear")!=null)
    {
        pageContext.include("../year/add_year_post.jsp");
        return;
    }
    
    if(request.getParameter("edityear")!=null)
    {
        pageContext.include("../year/edit_year_post.jsp");
        return;
    }
    
    if(request.getParameter("addsemester")!=null)
    {
        pageContext.include("../semester/add_semester_post.jsp");
        return;
    }
    
    if(request.getParameter("editsemester")!=null)
    {
        pageContext.include("../semester/edit_semester_post.jsp");
        return;
    }
    
    if(request.getParameter("addnews")!=null)
    {
        pageContext.include("../news/add_news_post.jsp");
        return;
    }
    
    if(request.getParameter("editnews")!=null)
    {
        pageContext.include("../news/edit_news_post.jsp");
        return;
    }
    
    if(request.getParameter("addclass")!=null)
    {
        pageContext.include("../class/add_class_post.jsp");
        return;
    }
    
    if(request.getParameter("editclass")!=null)
    {
        pageContext.include("../class/edit_class_post.jsp");
        return;
    }
    
    if(request.getParameter("addroom")!=null)
    {
        pageContext.include("../room/add_room_post.jsp");
        return;
    }
    
    if(request.getParameter("editroom")!=null)
    {
        pageContext.include("../room/edit_room_post.jsp");
        return;
    }
    
    if(request.getParameter("addaccount")!=null)
    {
        pageContext.include("../account/add_account_post.jsp");
        return;
    }
    
    if(request.getParameter("editaccount")!=null)
    {
        pageContext.include("../account/edit_account_post.jsp");
        return;
    }
    
    
    
    
    ///////////////////////////////////////////////////////////////////
    
    if(is_page.equals("list_student"))
    {
        pageContext.include("../student/list_all_student.jsp");
        return;
    }
    if(is_page.equals("add_student"))
    {
        pageContext.include("../student/add_student.jsp");
        return;
    }
    if(is_page.equals("edit_student"))
    {
        pageContext.include("../student/edit_student.jsp");
        return;
    }
     if(is_page.equals("delete_student"))
    {
        pageContext.include("../student/delete_student.jsp");
        return;
    }
    
    ///////////////////////////////////////////////////////////////////////////////
    /// TEACHER
    /////////////////////////////////////////
     if(is_page.equals("list_teacher"))
    {
        pageContext.include("../teacher/list_teacher.jsp");
        return;
    }
    
    if(is_page.equals("add_teacher"))
    {
        pageContext.include("../teacher/add_teacher.jsp");
        return;
    }
    
    if(is_page.equals("edit_teacher"))
    {
        pageContext.include("../teacher/edit_teacher.jsp");
    }
    
    if(is_page.equals("delete_teacher"))
    {
        pageContext.include("../teacher/delete_teacher.jsp");
    }
    
    
    ///////////////////////////////////////////////////////////////////////////////
    /// SUBJECT
    /////////////////////////////////////////
    if(is_page.equals("list_subject"))
    {
        pageContext.include("../subject/list_subject.jsp");
        return;
    }
    if(is_page.equals("add_subject"))
    {
        pageContext.include("../subject/add_subject.jsp");
        return;
    }
    if(is_page.equals("edit_subject"))
    {
        pageContext.include("../subject/edit_subject.jsp");
    }
    
    if(is_page.equals("delete_subject"))
    {
        pageContext.include("../subject/delete_subject.jsp");
    }
    
    if(is_page.equals("edit_required_subject"))
    {
        pageContext.include("../subject/edit_required_subject.jsp");
    }
    
    ///////////////////////////////////////////////////////////////////////////////
    /// YEAR
    /////////////////////////////////////////
    if(is_page.equals("list_year"))
    {
        pageContext.include("../year/list_year.jsp");
        return;
    }
    if(is_page.equals("add_year"))
    {
        pageContext.include("../year/add_year.jsp");
        return;
    }
    if(is_page.equals("edit_year"))
    {
        pageContext.include("../year/edit_year.jsp");
    }
    
    if(is_page.equals("delete_year"))
    {
        pageContext.include("../year/delete_year.jsp");
    }
    
    
    ///////////////////////////////////////////////////////////////////////////////
    /// SEMESTER
    /////////////////////////////////////////
    if(is_page.equals("list_semester"))
    {
        pageContext.include("../semester/list_semester.jsp");
        return;
    }
    if(is_page.equals("add_semester"))
    {
        pageContext.include("../semester/add_semester.jsp");
        return;
    }
    if(is_page.equals("edit_semester"))
    {
        pageContext.include("../semester/edit_semester.jsp");
    }
    
    if(is_page.equals("delete_semester"))
    {
        pageContext.include("../semester/delete_semester.jsp");
    }
    
    if(is_page.equals("current_semester"))
    {
        pageContext.include("../semester/current_semester.jsp");
    }
    
    ///////////////////////////////////////////////////////////////////////////////
    /// CLASS
    /////////////////////////////////////////
    if(is_page.equals("list_class"))
    {
        pageContext.include("../class/list_class.jsp");
        return;
    }
    if(is_page.equals("add_class")) 
    {
        pageContext.include("../class/add_class.jsp");
        return;
    }
    if(is_page.equals("edit_class"))
    {
        pageContext.include("../class/edit_class.jsp");
    }
    
    if(is_page.equals("delete_class"))
    {
        pageContext.include("../class/delete_class.jsp");
    }
    
    if(is_page.equals("findclass"))
    {
        pageContext.include("../class/findclass.jsp");
    }
    
    if(is_page.equals("findRoom"))
    {
        pageContext.include("../class/findRoom.jsp");
    }
    
    if(is_page.equals("detail_class"))
    {
        pageContext.include("../class/detail_class.jsp");
    }
    
    ///////////////////////////////////////////////////////////////////////////////
    /// ROOM
    /////////////////////////////////////////
    if(is_page.equals("list_room"))
    {
        pageContext.include("../room/list_room.jsp");
        return;
    }
    if(is_page.equals("add_room")) 
    {
        pageContext.include("../room/add_room.jsp");
        return;
    }
    if(is_page.equals("edit_room"))
    {
        pageContext.include("../room/edit_room.jsp");
    }
    
    if(is_page.equals("delete_room"))
    {
        pageContext.include("../room/delete_room.jsp");
    }
    
    
    ///////////////////////////////////////////////////////////////////////////////
    /// NEWS
    /////////////////////////////////////////
    if(is_page.equals("list_news"))
    {
        pageContext.include("../news/list_news.jsp");
        return;
    }
    if(is_page.equals("add_news")) 
    {
        pageContext.include("../news/add_news.jsp");
        return;
    }
    if(is_page.equals("edit_news"))
    {
        pageContext.include("../news/edit_news.jsp");
    }
    
    if(is_page.equals("delete_news"))
    {
        pageContext.include("../news/delete_news.jsp");
    }
    
    
    ///////////////////////////////////////////////////////////////////////////////
    /// ACCOUNT
    /////////////////////////////////////////
    if(is_page.equals("list_account"))
    {
        pageContext.include("../account/list_account.jsp");
        return;
    }
    if(is_page.equals("add_account")) 
    {
        pageContext.include("../account/add_account.jsp");
        return;
    }
    if(is_page.equals("edit_account"))
    {
        pageContext.include("../account/edit_account.jsp");
    }
    
    if(is_page.equals("delete_account"))
    {
        pageContext.include("../account/delete_account.jsp");
    }
    
    
    
    
    
    
    
    
    
    
    
    if(is_page.equals("test"))
    {
        pageContext.include("../test/test.jsp");
    }
    
    
    
    
    //if(is_page.equals("test"))
    //{
    //    pageContext.include("../test/test.jsp");
    //    return;
    //}
    //else
    //{
     //   pageContext.include("../student/list_all_student.jsp");
     //   return;
    //}
}
else
       {
    pageContext.include("../dashboard/dashboard.jsp");
}

%>